package designPattern.strategy;

public class Main {
	public static void main(String[] args) {
		double amount = 200;
		PayCenter payCenter;
		if(amount >=200) {
			payCenter = new PayCenter(new HalfOffCost());
		} else {
			payCenter = new PayCenter(new OriginalCost());
		}
		System.out.println(payCenter.getAmount(amount));
	}
}
